package com.aptech.yuanhuabao.api.soap.result;

import com.aptech.yuanhuabao.api.soap.parser.SoapGenerator;

/**
 * des:
 * Created by zhh_li
 * on 2017/1/20.
 */

public class LoginResult extends BaseResult {
    private static final  String LOG_TAG = "LoginResult";
    private LoginResult loginResult = null;



    private String domainId;
    private String phone;//主机号码
    private String deviceId;
    private String userName;
    private String password;
    private String rtpEncrypt;
    private String sipIp;//主SIPip
    private String sipPort;//主SIPport
    private String sSipIp; //从SIPip
    private String sSipPort; //从SIPprot
    private String encryptSipIp;
    private String encryptSipPort;
    private String sEncryptSipIp;
    private String sEncryptSipPort;
    private String url;
    private String sUrl;// https add 2016-12-01
    private String xmppUrl;
    private String sXmppUrl; // https add 2016-12-14
    private String xmppDomain;
    private String xmppPort;
    private String xmppAccount;
    private String xmppPwd;
    private String name;


    public LoginResult(String xmlStr){
        parserResult = parserXmlStr(xmlStr);

        phone = SoapGenerator.getXmlTagValue(parserResult, "phone");
        domainId = SoapGenerator.getXmlTagValue(parserResult, "domainId");
        deviceId = SoapGenerator.getXmlTagValue(parserResult, "deviceId");
        userName = SoapGenerator.getXmlTagValue(parserResult, "userName");
        password = SoapGenerator.getXmlTagValue(parserResult, "password");
        rtpEncrypt = SoapGenerator.getXmlTagValue(parserResult, "rtpEncrypt");
        sipIp = SoapGenerator.getXmlTagValue(parserResult, "sipIp");
        sipPort = SoapGenerator.getXmlTagValue(parserResult, "sipPort");
        sSipIp = SoapGenerator.getXmlTagValue(parserResult, "sSipIp");
        sSipPort = SoapGenerator.getXmlTagValue(parserResult, "sSipPort");
        sEncryptSipIp = SoapGenerator.getXmlTagValue(parserResult, "sEncryptSipIp");
        sEncryptSipPort = SoapGenerator.getXmlTagValue(parserResult, "sEncryptSipPort");
        encryptSipIp = SoapGenerator.getXmlTagValue(parserResult, "encryptSipIp");
        encryptSipPort = SoapGenerator.getXmlTagValue(parserResult, "encryptSipPort");
        url = SoapGenerator.getXmlTagValue(parserResult, "url");
        sUrl = SoapGenerator.getXmlTagValue(parserResult, "sUrl");// https
        sXmppUrl = SoapGenerator.getXmlTagValue(parserResult, "sXmppUrl");// https
        xmppUrl = SoapGenerator.getXmlTagValue(parserResult, "xmppUrl");
        xmppPort = SoapGenerator.getXmlTagValue(parserResult, "xmppPort");
        xmppAccount = SoapGenerator.getXmlTagValue(parserResult, "xmppAccount");
        xmppPwd = SoapGenerator.getXmlTagValue(parserResult, "xmppPwd");
        xmppDomain = SoapGenerator.getXmlTagValue(parserResult, "xmppDomain");
        name = SoapGenerator.getXmlTagValue(parserResult, "name");
        result = SoapGenerator.getXmlTagValue(parserResult, "result");
    }


    public String getDomainId() {
        return domainId;
    }

    public void setDomainId(String domainId) {
        this.domainId = domainId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRtpEncrypt() {
        return rtpEncrypt;
    }

    public void setRtpEncrypt(String rtpEncrypt) {
        this.rtpEncrypt = rtpEncrypt;
    }

    public String getSipIp() {
        return sipIp;
    }

    public void setSipIp(String sipIp) {
        this.sipIp = sipIp;
    }

    public String getSipPort() {
        return sipPort;
    }

    public void setSipPort(String sipPort) {
        this.sipPort = sipPort;
    }

    public String getsSipIp() {
        return sSipIp;
    }

    public void setsSipIp(String sSipIp) {
        this.sSipIp = sSipIp;
    }

    public String getsSipPort() {
        return sSipPort;
    }

    public void setsSipPort(String sSipPort) {
        this.sSipPort = sSipPort;
    }

    public String getEncryptSipIp() {
        return encryptSipIp;
    }

    public void setEncryptSipIp(String encryptSipIp) {
        this.encryptSipIp = encryptSipIp;
    }

    public String getEncryptSipPort() {
        return encryptSipPort;
    }

    public void setEncryptSipPort(String encryptSipPort) {
        this.encryptSipPort = encryptSipPort;
    }

    public String getsEncryptSipIp() {
        return sEncryptSipIp;
    }

    public void setsEncryptSipIp(String sEncryptSipIp) {
        this.sEncryptSipIp = sEncryptSipIp;
    }

    public String getsEncryptSipPort() {
        return sEncryptSipPort;
    }

    public void setsEncryptSipPort(String sEncryptSipPort) {
        this.sEncryptSipPort = sEncryptSipPort;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getsUrl() {
        return sUrl;
    }

    public void setsUrl(String sUrl) {
        this.sUrl = sUrl;
    }

    public String getXmppUrl() {
        return xmppUrl;
    }

    public void setXmppUrl(String xmppUrl) {
        this.xmppUrl = xmppUrl;
    }

    public String getsXmppUrl() {
        return sXmppUrl;
    }

    public void setsXmppUrl(String sXmppUrl) {
        this.sXmppUrl = sXmppUrl;
    }

    public String getXmppDomain() {
        return xmppDomain;
    }

    public void setXmppDomain(String xmppDomain) {
        this.xmppDomain = xmppDomain;
    }

    public String getXmppPort() {
        return xmppPort;
    }

    public void setXmppPort(String xmppPort) {
        this.xmppPort = xmppPort;
    }

    public String getXmppAccount() {
        return xmppAccount;
    }

    public void setXmppAccount(String xmppAccount) {
        this.xmppAccount = xmppAccount;
    }

    public String getXmppPwd() {
        return xmppPwd;
    }

    public void setXmppPwd(String xmppPwd) {
        this.xmppPwd = xmppPwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }




}
